-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post Tags: Feature Parity for Customization #24069
Post Tags: Feature Parity for Customization #24069
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since there is currently no style hook for textAlign
, we will need to ensure the proper class is added in the index.php file for this block.
Similar to:
gutenberg/packages/block-library/src/post-comments/index.php
Lines 34 to 37 in 799e355
$classes = 'wp-block-post-comments'; | |
if ( isset( $attributes['textAlign'] ) ) { | |
$classes .= ' has-text-align-' . $attributes['textAlign']; | |
} |
Note:
After more consideration, we'll be handling these concerns at a later date. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you |
Description
This PR addresses a task in #21087 and is meant to add feature parity to FSE blocks. This adds settings (and some necessary restructuring/styles to support) text alignment and the experimental flags for color, fontSize, and lineHeight.
How has this been tested?
Tested on local docker wp-env environment.
Screenshots
Types of changes
New feature (non-breaking change which adds functionality)
Checklist: